﻿using Dqs_DAL;
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Dqs_BLL
{
	public class Course_BLL
	{
		Course_DAL _course_DAL = new Course_DAL();
		

		public List<CourseInfo> GetCourses()
		{
			return _course_DAL.QueryCourseInfo();
		}

		public bool InsertCourseInfo(CourseInfo courseInfo)
		{
			return _course_DAL.InsertCourseInfo(courseInfo);
		}

		public bool UpdateCourseInfoById(CourseInfo courseInfo)
		{
			return _course_DAL.UpdateCourseInfoById(courseInfo);
		}

		public bool DeleteCourseInfoById(int courseId)
		{
			return _course_DAL.DeleteCourseInfoById(courseId);
		}
	}
}
